import pygtk
pygtk.require('2.0')
import gtk
import os

class ModalDialog:
    
     def __init__(self, message):
        dialog = gtk.Dialog("Message", None, gtk.DIALOG_MODAL)
        label = gtk.Label(message)
        label.show()
        # 10 distance in pixel
        dialog.vbox.pack_start(label, True, True, 10)
        dialog.add_button(gtk.STOCK_OK, gtk.RESPONSE_OK)
        dialog.run()
        dialog.destroy()